import request from '@/utils/request'

// 查询供应商列表
export function listPost(query) {
  return request({
    url: '/med/prov/list',
    method: 'get',
    params: query
  })
}

// 查询供应商详细 根据ID
export function getPost(providerId) {
  return request({
    url: '/med/prov/' + providerId,
    method: 'get'
  })
}

// 新增供应商
export function addPost(data) {
  return request({
    url: '/med/prov',
    method: 'post',
    data: data
  })
}

// 修改供应商
export function updatePost(data) {
  return request({
    url: '/med/prov',
    method: 'put',
    data: data
  })
}

// 删除供应商
export function delPost(providerId) {
  return request({
    url: '/med/prov/' + providerId,
    method: 'delete'
  })
}

// 导出岗位
export function exportPost(query) {
  return request({
    url: '/system/post/export',
    method: 'get',
    params: query
  })
}
